<?
    include('../home/config.php');
    session_start();
    if(!isset($_SESSION['username'])){
        header('Location:login.php');
    }
    
?>
<!DOCTYPE HTML>
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<meta name="author" content="Ta Van Chinh" />
   <link rel="Shortcut Icon" href="/theme/images/icon.ico" type="image/x-icon" />
	<title>Hệ thống quản lý website</title>
   <link rel="stylesheet" href="css/main.css" />
    
</head>

<body>
    <div id="header">
        <div class="caption">Hệ thống quản trị website</div>
        <div class="admin">
            <span class="ad-name">Xin chào <?=$_SESSION['username']?> |</span>
            <a href="logout.php">Đăng xuất</a>
        </div>
    </div>
    <div id="nav">
        <div class="function">
            <p class="caption-fun">Sản phẩm</p>
            <ul>
                <li><a target="_blank" href="product/listing.php">Danh sách</a></li>
                <li><a target="_blank" href="product/add.php">Thêm mới</a></li>
            </ul>
        </div>
        <div class="function">
            <p class="caption-fun">Danh mục sản phẩm</p>
            <ul>
                <li><a target="_blank" href="category/listing.php">Danh sách</a></li>
                <li><a target="_blank" href="category/add.php">Thêm mới</a></li>
            </ul>
        </div>
        <div class="function">
            <p class="caption-fun">Bài viết</p>
            <ul>
                <li><a target="_blank" href="article/listing.php">Danh sách</a></li>
                <li><a target="_blank" href="article/add.php">Thêm mới</a></li>
            </ul>
        </div>
    </div>
</body>
</html>